<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
            <rich:panel header="Installation">
                <f:view>
                    <h:form>
                        <h1><h:outputText value="Adminkonto anlegen"/></h1>
                        <h:panelGrid columns="2">
                            <h:outputLabel value="Vorname:" for="vorname" />
                            <h:inputText id="vorname" value="#{installService.adminAcc.vorname}" title="Vorname" />
                            <h:outputLabel value="Nachname:" for="nachname" />
                            <h:inputText id="nachname" value="#{installService.adminAcc.nachname}" title="Nachname" />
                            <h:outputLabel value="Email:" for="email" />
                            <h:inputText id="email" value="#{installService.adminAcc.email}" title="Email" required="true" requiredMessage="The Email field is required."/>
                            <h:outputLabel value="Passwort:" for="passwort" />
                            <h:inputSecret id="passwort" value="#{installService.adminAcc.passwort}" title="Passwort" required="true" requiredMessage="The Passwort field is required."/>                            
                            <h:outputLabel value="Sicherheitstoken" for="token"/>
                            <h:inputSecret id="token" value="#{installService.inputToken}"/>
                            
                            
                            <a4j:commandButton value="Token auf Konsole anzeigen" action="#{installService.showToken}"/>
                            <h:commandButton value="Installieren" action="registerAdmin"/>
                        </h:panelGrid>
                    </h:form>
                </f:view>

                
            </rich:panel>
            <br/>
        </h:form>
    </h:body>
</html>

